const app = require("./app");
const db = require("./db");
const { PORT } = require("./config");
// 数据库连接
db.connect();
// 服务启动
const server = app.listen(PORT, () => {
    console.log(`Server listening on port ${PORT}`);
});

module.exports = server;
